//
//  ZCCollectionCell.m
//  zctx
//
//  Created by apple on 16/1/4.
//  Copyright © 2016年 sanliang. All rights reserved.
//

#import "ZCCollectionCell.h"

@implementation ZCCollectionCell

- (void)awakeFromNib {
    // Initialization code
}

-(void)setDict:(NSDictionary *)dict{
    _dict = dict;
    
    NSString *title = [NSString stringWithFormat:@"%@",[dict objectForKey:@"title"]];
    NSString *thumb = [NSString stringWithFormat:@"%@",[dict objectForKey:@"thumb"]];
    self.titleLable.text = title;
    
    NSURL *url =[NSURL URLWithString:[NSString stringWithFormat:@"%@%@",[NetworkManager strURLBasic],thumb]];
    [self.imgView sd_setImageWithURL:url placeholderImage:[UIImage imageNamed:@"main_placehold"]];
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
